package com.lqwu.mallchatserver.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lqwu.mallchatserver.user.mapper.ItemConfigMapper;
import com.lqwu.mallchatserver.user.model.entry.ItemConfig;
import com.lqwu.mallchatserver.user.service.ItemConfigService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 伍立权
* @description 针对表【item_config(功能物品配置表)】的数据库操作Service实现
* @createDate 2025-05-27 15:16:12
*/
@Service
public class ItemConfigServiceImpl extends ServiceImpl<ItemConfigMapper, ItemConfig>
    implements ItemConfigService {

    /**
     * 获取有效的物品列表
     *
     * @param type
     * @return
     */
    @Override
    public List<ItemConfig> getByType(Integer type) {
        return lambdaQuery()
                .eq(ItemConfig::getType, type).list();
    }
}




